﻿using JT808.Protocol.Extensions.JTActiveSafety.MessageBody;
using JT808.Protocol.Extensions.JTActiveSafety.Metadata;
using JTActiveSafety.Gateway;
using System.Collections.Generic;

namespace Demo.AttachFileService.Models
{
    public interface ISqliteDbService
    {
        void AddFileRecvRecored(JT808_0x1299 jT808_0X1299);

        CheckFileIntegrityResult CheckFileIntegrity(string fileName, out uint fileSize, out List<Node> missingNodes, bool resultMissing = false);
        void CreateAlarmInfoAndAttachFiles(string terminalPhoneNo, JT808_0x1210 input);
        void CreateTempTable();
        void HandlerEnd(string fileName);
        byte[] ReadData(int id);
        void DeleteData(int id);
        List<FileRecvRecored> WriteData(FileRecvRecored recored);
    }
}